<template>
  <div class="tab-bar"> 
    <div class="tab-bar-l" @click="to_song" >
      <img src="../../assets/img/music/tabbar/music.svg" alt="">
      <div class="song-name" >心淡</div>
      <span>-</span>
      <div class="singer" >容祖儿</div>
    </div>
    <div class="tab-bar-r">
      <img src="../../assets/img/music/tabbar/play.svg" alt="">
      <img src="../../assets/img/music/tabbar/下一首.svg" alt="">
    </div>

  </div>
</template>

<script>

export default {
  name: '',
  props:{
    path:String
  },
  data () {
    return {
      
    }
  },
  methods:{
  to_song(){
    console.log(this.path)
    this.$router.push(this.path)
  }
}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.tab-bar{
  background-color: #fff;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 49px;
  width: 100%;
  height: 50px;
  border-top: 1px solid rgb(117, 117, 117);
  z-index: 1;
  display: flex;
  line-height: 40px;
}
.tab-bar-l{
  flex: 1;
  display: flex;
}
.tab-bar-l img{
  margin-left: 10px;
  width: 40px;
  height: 40px;
}
.song-name{
  margin-left: 8px;
  margin-right: 5px;
  font-size: 18px;
  color: black;
}
.singer{
  margin-left: 5px;
  font-size: 14px;
  color: #333;
}
.tab-bar-r{
  width: 100px;
  display: flex;
}
.tab-bar-r img{
  
  margin: auto 0;
  margin-left: 5px;
  width: 30px;
  height: 30px;
}
</style>